package day03;

import java.util.Scanner;

public class MainTest6 {
    public static void main(String[] args) {
        System.out.println("输入学生姓名:");
        Scanner input = new Scanner(System.in);
        String name = input.next();

        double sum = 0;
        for (int i = 1;i<=5;i++){
            System.out.println("请输入5门功课中第"+i+"门课的成绩：");
            Scanner inputt = new Scanner(System.in);
            double score = inputt.nextDouble();
            sum = sum+score;
        }
        System.out.println(sum/5);
    }
}
